'use strict'
const titbit=require('titbit');
const app=new titbit({
    debug:true,
    https:true,
    key:'/usr/local/cert/www.sevenhero.cn.key',
    cert:'/usr/local/cert/www.sevenhero.cn.crt'
})

app.get('/',async c=>{
    let name=process.env.USER;
     c.res.body=name+' '+'success';
})
app.get('/info',async c=>{
    let name=process.env.USER;
    let k={"name":`${name}`,"sno":"2018011643"};
    c.res.body=JSON.stringify(k);
})


app.run(1234);